﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="culture.aspx.cs" Inherits="UI.system.page.config.culture" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="/js/jquery.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/md5.js"></script>
    <script src="/js/swfupload.js"></script>
    <script src="/system/js/admin.js"></script>
    <script src="/system/layui/layui.js"></script>
    <link rel="stylesheet" href="/system/layui/css/layui.css">
    <link rel="stylesheet" href="/system/layui/css/global.css">
    <link rel="stylesheet" href="/system/css/iframe.css">
    <script type="text/javascript" src="/system/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/system/ueditor/ueditor.all.min.js"> </script>
    <script type="text/javascript" src="/system/ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
<div style="padding: 35px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<script id="culture" type="text/plain" style="width:100%;height:400px;"><%=info.Culture %></script>
		</div>
        <div class="layui-form-item">
			<a lay-filter="save" class="layui-btn layui-btn-normal" onclick="Update_Culture()">保存</a>
		</div>
	</form>
</div>
<script>
    function Update_Culture() {
        var data = {};
        data.act = "Update_Culture";
        data.culture = ue.getContent();
        data.sign = GetSign(data.act);
        Ajax.Post("/tools/Admin.ashx", data, function (r) {
            var json = $.parseJSON(r);
            if (json.state) {
                LayerBox.Success("保存成功");
            }
            else {
                LayerBox.Error(json.msg);
            }
        });
    };

    var ue = UE.getEditor('culture');
</script>
</body>
</html>
